<?php
/******************************************************
v4 - Management Framework
Copyright (C) 2008  Gary Taylor, gMerc Incorporation
http://www.gmerc.com/v4/

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

gary@gmerc.com
******************************************************/

/******************************************************
DATABASE CONFIGURATIONS
*******************************************************
$userconfig->mainconfig['database_host']='localhost'; // database host for connection
$userconfig->mainconfig['database_login']=''; // database login for connection
$userconfig->mainconfig['database_pass']=''; // database password for connection
$userconfig->mainconfig['default_database']='v4_billpdf'; // database

$userconfig->mainconfig['include_mysql']='1'; // switch on mysql functions '1'=on : ''=off (Old Stuff)
$userconfig->mainconfig['include_adodb']='1'; // switch on adodb functions '1'=on : ''=off (New Stuff)
$userconfig->mainconfig['datastorage']='mysql'; // datastorage type mysql:mssql:oracle:postgre
******************************************************/

$userconfig->mainconfig['database_host']='localhost';
$userconfig->mainconfig['database_login']='';
$userconfig->mainconfig['database_pass']='';
$userconfig->mainconfig['default_database']='v4';

$userconfig->mainconfig['include_mysql']='1';
$userconfig->mainconfig['include_adodb']='1';
$userconfig->mainconfig['datastorage']='mysql';

/******************************************************
DIR PATHS 
******************************************************* 
$userconfig->mainconfig['dir']='/'; //subdirectories from domainname.com to root directory followed by a forward slash / ;
examples: 
  $userconfig->mainconfig['dir']='/'; // "www.yourdomain.com/" v4 is on root directory
  $userconfig->mainconfig['dir']='/billing/'; // "www.yourdomain.com/billing/" v4 is on subdirectory of billing directory
******************************************************/
$userconfig->mainconfig['dir']='/v4.web/';
/******************************************************
$userconfig->mainconfig['server_v4fulldir']='/usr/local/www/htdocs/'; // fullpath of v4 realpath("./")."/"; should work...
$userconfig->mainconfig['v4rootdir']='/usr/local/www/v4.root/'; // path of v4.root files
$userconfig->mainconfig['v4moduledir']=$userconfig->mainconfig['v4rootdir'].'modules/'; // path to module libraries
$userconfig->mainconfig['v4sourcedir']='/usr/local/www/v4.source/'; // path of v4 source files
$userconfig->mainconfig['sourcehtmldirectory']='html/'; // directory of html files within mainconfig['v4sourcedir']
$userconfig->mainconfig['sourcewapdirectory']='wap/'; // directory of wap files within mainconfig['v4sourcedir']
$userconfig->mainconfig['sourcedirectory']=$userconfig->mainconfig['sourcehtmldirectory']; // default source directory (html|wap)
******************************************************/
$userconfig->mainconfig['server_v4fulldir']=realpath("./")."/";
$userconfig->mainconfig['v4rootdir']=$userconfig->mainconfig['server_v4fulldir'].'v4.root/';
$userconfig->mainconfig['v4moduledir']=$userconfig->mainconfig['v4rootdir'].'modules/';
$userconfig->mainconfig['v4sourcedir']=$userconfig->mainconfig['server_v4fulldir'].'v4.source/';
$userconfig->mainconfig['sourcehtmldirectory']='html/';
$userconfig->mainconfig['sourcewapdirectory']='wap/';
$userconfig->mainconfig['sourcedirectory']=$userconfig->mainconfig['sourcehtmldirectory'];

/******************************************************
AJAX CONFIGURATION
*******************************************************
$userconfig->mainconfig['include_sajax']='1';  // switch on ajax functions '1'=on : ''=off
$userconfig->websiteconfig['sajax_export']=array(); // build custom sajax wrappers
******************************************************/
$userconfig->mainconfig['include_sajax']='1';
$userconfig->websiteconfig['sajax_export']=array();

/******************************************************
AUTHENTICATION && PERMISSIONS
*******************************************************
$userconfig->site['authentication_type']='mysql_'; // select the type of authenication mysql_ only.
******************************************************/
$userconfig->site['authentication_type']='mysql_';
$userconfig->site['authentication_picturestxt_file']='';

/******************************************************
INVOICES
******************************************************
$userconfig->websiteconfig['invoices_emaildir']='external/invoices_emailpdf/'; // directory you want to store pdf files.
*******************************************************/
$userconfig->websiteconfig['invoices_emaildir']='external/invoices_emailpdf/';

/******************************************************
AUTHORIZE DOT NET
*******************************************************
$userconfig->websiteconfig['authorizedornet_transactionurl']='https://secure.authorize.net/gateway/transact.dll'; // REAL Server
$userconfig->websiteconfig['authorizedotnet_transactionurl']='https://test.authorize.net/gateway/transact.dll'; // TEST Server
******************************************************/
$userconfig->websiteconfig['authorizedotnet_transactionurl']='https://test.authorize.net/gateway/transact.dll';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_version']='3.1';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_delim_data']='TRUE';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_delim_char']=',';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_encap_char']='"';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_url']='FALSE';

$userconfig->websiteconfig['authorizedotnet_defaultfield_x_email_customer']='FALSE';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_header_email_receipt']='';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_footer_email_receipt']='';
$userconfig->websiteconfig['authorizedotnet_defaultfield_x_email']='';

/******************************************************
 LOAD MODULES
*******************************************************

*******************************************************/
$userconfig->websiteconfig['body_onload']='jsloadingscreen();';
$userconfig->websiteconfig['javascript_include']=array('include/master.inc.js');
$userconfig->websiteconfig['css_include']=array('include/master.inc.css');
$userconfig->mainconfig['modules']=array('personnel','customers','companies','invoices','links','paperpdf');
$userconfig->sitevars['locationupdate']=array();

/******************************************************
DEBUGGING                                                                 
*******************************************************
$userconfig->mainconfig['debug']=''; // switch on ALL debuging functions '1'=on : ''=off
$userconfig->mainconfig['debug_masterclass']=''; // switch on masterclass debugging functions '1'=on : ''=off
******************************************************/
$userconfig->mainconfig['debug']='';
$userconfig->mainconfig['debug_masterclass']='';
?>
